package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.Household;
import com.ruoyi.system.api.factory.RemoteHouseholdFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 用户服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteHouseholdService", value = ServiceNameConstants.RQ_SERVICE, fallbackFactory = RemoteHouseholdFallbackFactory.class)
public interface HouseholdService
{
    @GetMapping(value = "/household/getHousehold/{HouseholdName}")
    public List<Household> getHousehold(@PathVariable("HouseholdName") String name);

    @GetMapping(value = "/household/getHouseholdName/{householdName}")
    public Household getHouseholdName(@PathVariable("householdName") String householdName);

    @GetMapping(value = "/household/user/{getUserId}")
    public Household getUser(@PathVariable("getUserId") Long id);
}
